﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Threading.Thread;

namespace CSharp.Study.AsyncTest
{
    internal static class Common
    {
        public static void ShowCurrentInfo(string name)
        {
            Console.WriteLine($"方法名：{name}，线程id：{CurrentThread.ManagedThreadId}，是否是后台线程：{CurrentThread.IsBackground}，是否是线程池线程：{CurrentThread.IsThreadPoolThread}");
        }
    }
}
